<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: include/designM/facade.hpp 源文件</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="../../dir_7815f4a69fa470e020068bb120d080ef.html">designM</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">facade.hpp</div></div>
</div><!--header-->
<div class="contents">
<a href="../../d8/d42/facade_8hpp.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#include &lt;functional&gt;</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span> </div>
<div class="foldopen" id="foldopen00012" data-start="{" data-end="}">
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"><a class="line" href="../../dc/d4e/namespacefacade__private____.html">   12</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../dc/d4e/namespacefacade__private____.html">facade_private__</a> {</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span>    <span class="keyword">template</span> &lt; <span class="keyword">typename</span> itfcType , <span class="keyword">typename</span>... implType &gt;</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"><a class="line" href="../../df/da0/structfacade__private_____1_1_t_y_p_e___c_h_k___h_e_l_p_e_r____.html">   14</a></span>    <span class="keyword">struct </span><a class="code hl_struct" href="../../df/da0/structfacade__private_____1_1_t_y_p_e___c_h_k___h_e_l_p_e_r____.html">TYPE_CHK_HELPER__</a>{};</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span> </div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span>    <span class="keyword">template</span>&lt; <span class="keyword">typename</span> itfcType , <span class="keyword">typename</span> implType1 , <span class="keyword">typename</span>... implType &gt;</div>
<div class="foldopen" id="foldopen00017" data-start="{" data-end="};">
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="../../df/dc8/structfacade__private_____1_1_t_y_p_e___c_h_k___h_e_l_p_e_r_____3_01itfc_type_00_01impl_type1_00_01impl_type_8_8_8_01_4.html">   17</a></span>    <span class="keyword">struct </span><a class="code hl_struct" href="../../df/da0/structfacade__private_____1_1_t_y_p_e___c_h_k___h_e_l_p_e_r____.html">TYPE_CHK_HELPER__</a>&lt; itfcType , implType1 , implType...&gt;</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span>    {</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span>        <span class="keyword">static_assert</span>( std::is_base_of&lt; itfcType , implType1 &gt;::value , <span class="stringliteral">&quot;&quot;</span> );</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span>    };</div>
</div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span>    <span class="keyword">template</span>&lt; <span class="keyword">typename</span> itfcType &gt;</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"><a class="line" href="../../db/d69/structfacade__private_____1_1_t_y_p_e___c_h_k___h_e_l_p_e_r_____3_01itfc_type_01_4.html">   23</a></span>    <span class="keyword">struct </span><a class="code hl_struct" href="../../df/da0/structfacade__private_____1_1_t_y_p_e___c_h_k___h_e_l_p_e_r____.html">TYPE_CHK_HELPER__</a>&lt;itfcType&gt; {};</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span>}</div>
</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span> </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../df/d8d/namespacewheels.html">wheels</a>{ <span class="keyword">namespace </span>dm {</div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span><span class="keyword">template</span>&lt; <span class="keyword">typename</span> itfcType ,  <span class="keyword">typename</span>... subTypes &gt;</div>
<div class="foldopen" id="foldopen00029" data-start="{" data-end="};">
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html">   29</a></span><span class="keyword">class </span><a class="code hl_class" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html">facade</a></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span>{</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"><a class="line" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a3b7e2e7aef2676547af09c14b29e713f">   32</a></span>    <span class="keyword">using </span><a class="code hl_typedef" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a3b7e2e7aef2676547af09c14b29e713f">itfc_t</a> = <span class="keyword">typename</span> std::remove_pointer&lt; typename std::decay&lt; itfcType &gt;::type &gt;::type;</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a53ea93548f79a4dc9881805e661356e5">   33</a></span>    <span class="keyword">using </span><a class="code hl_typedef" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a53ea93548f79a4dc9881805e661356e5">iterator</a> = <span class="keyword">typename</span> std::vector&lt; itfc_t * &gt;::iterator;</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span>    <span class="keyword">template</span>&lt; <span class="keywordtype">int</span> N , <span class="keyword">typename</span> tupleParams &gt;</div>
<div class="foldopen" id="foldopen00037" data-start="{" data-end="};">
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="../../df/d83/structwheels_1_1dm_1_1facade_1_1_i_n_i_t___h_e_l_p_e_r____.html">   37</a></span>    <span class="keyword">struct </span><a class="code hl_struct" href="../../df/d83/structwheels_1_1dm_1_1facade_1_1_i_n_i_t___h_e_l_p_e_r____.html">INIT_HELPER__</a></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span>    {</div>
<div class="foldopen" id="foldopen00039" data-start="{" data-end="}">
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="../../df/d83/structwheels_1_1dm_1_1facade_1_1_i_n_i_t___h_e_l_p_e_r____.html#a3da2a8345e0f0cc51621b090a75b458c">   39</a></span>        <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../df/d83/structwheels_1_1dm_1_1facade_1_1_i_n_i_t___h_e_l_p_e_r____.html#a3da2a8345e0f0cc51621b090a75b458c">init__</a>( std::vector&lt; itfc_t * &gt;&amp; vec , tupleParams&amp; t ){</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span>            vec[ N - 1 ] = std::get&lt; N - 1 &gt;( t );</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span>            </div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span>            <a class="code hl_function" href="../../df/d83/structwheels_1_1dm_1_1facade_1_1_i_n_i_t___h_e_l_p_e_r____.html#a3da2a8345e0f0cc51621b090a75b458c">INIT_HELPER__&lt; N - 1 , tupleParams &gt;::init__</a>( vec , t );</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span>        }</div>
</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span>    };</div>
</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span>    </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span>    <span class="keyword">template</span>&lt; <span class="keyword">typename</span> tupleParams &gt;</div>
<div class="foldopen" id="foldopen00047" data-start="{" data-end="};">
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="../../dd/de6/structwheels_1_1dm_1_1facade_1_1_i_n_i_t___h_e_l_p_e_r_____3_010_00_01tuple_params_01_4.html">   47</a></span>    <span class="keyword">struct </span><a class="code hl_struct" href="../../df/d83/structwheels_1_1dm_1_1facade_1_1_i_n_i_t___h_e_l_p_e_r____.html">INIT_HELPER__</a>&lt;0 , tupleParams &gt;{</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="../../dd/de6/structwheels_1_1dm_1_1facade_1_1_i_n_i_t___h_e_l_p_e_r_____3_010_00_01tuple_params_01_4.html#a35a137440b381c213091edc3f4e9e412">   48</a></span>        <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../dd/de6/structwheels_1_1dm_1_1facade_1_1_i_n_i_t___h_e_l_p_e_r_____3_010_00_01tuple_params_01_4.html#a35a137440b381c213091edc3f4e9e412">init__</a>( std::vector&lt; itfc_t * &gt;&amp;  , tupleParams&amp; ){}</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span>    };</div>
</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span><span class="keyword">protected</span>:</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#ae6c8dce7ed783ad4535f0905804ed524">   51</a></span>    std::vector&lt; itfc_t * &gt;  <a class="code hl_variable" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#ae6c8dce7ed783ad4535f0905804ed524">m_subs__</a>;</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#aba27b048395bb4b55af366d970c0f7e6">   53</a></span>    <a class="code hl_struct" href="../../df/da0/structfacade__private_____1_1_t_y_p_e___c_h_k___h_e_l_p_e_r____.html">facade_private__::TYPE_CHK_HELPER__</a>&lt;<a class="code hl_typedef" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a3b7e2e7aef2676547af09c14b29e713f">itfc_t</a> , subTypes... &gt;   <a class="code hl_variable" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#aba27b048395bb4b55af366d970c0f7e6">m_chker__</a>[0];</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a7d1839293a0e6e90e727a2f042807623">   55</a></span>    <a class="code hl_function" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a7d1839293a0e6e90e727a2f042807623">facade</a>(){}</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span> </div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"><a class="line" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a635b70c64cf25390a15cc6b10823feb3">   57</a></span>    <a class="code hl_function" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a635b70c64cf25390a15cc6b10823feb3">facade</a>( std::vector&lt; itfc_t * &gt; subs ):<a class="code hl_variable" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#ae6c8dce7ed783ad4535f0905804ed524">m_subs__</a>( subs ) {}</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span> </div>
<div class="foldopen" id="foldopen00059" data-start="{" data-end="}">
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a2d7354b5cf88b84f0f85a39db7a3e298">   59</a></span>    <a class="code hl_function" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a2d7354b5cf88b84f0f85a39db7a3e298">facade</a>(subTypes*... subs):<a class="code hl_variable" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#ae6c8dce7ed783ad4535f0905804ed524">m_subs__</a>( sizeof...(subTypes) ) {</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno">   60</span>        std::tuple&lt; subTypes*... &gt; t = std::make_tuple( subs... );</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno">   61</span>        <a class="code hl_struct" href="../../df/d83/structwheels_1_1dm_1_1facade_1_1_i_n_i_t___h_e_l_p_e_r____.html">INIT_HELPER__</a>&lt; <span class="keyword">sizeof</span>...( subTypes ) ,<span class="keyword">decltype</span>(t) &gt;::init__( <a class="code hl_variable" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#ae6c8dce7ed783ad4535f0905804ed524">m_subs__</a> , t );</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno">   62</span>    }</div>
</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span> </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#aa689dcc043ea8217fcacd290d45dc018">   64</a></span>    <span class="keyword">virtual</span> <a class="code hl_function" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#aa689dcc043ea8217fcacd290d45dc018">~facade</a>(){}</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span> </div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno">   66</span>    <span class="keyword">template</span>&lt; <span class="keyword">typename</span> subType &gt;</div>
<div class="foldopen" id="foldopen00067" data-start="{" data-end="}">
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#aa1ebf3b7a5f8641fd5f40668c36bf1e9">   67</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#aa1ebf3b7a5f8641fd5f40668c36bf1e9">add</a>( subType * obj ){</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno">   68</span>        <a class="code hl_struct" href="../../df/da0/structfacade__private_____1_1_t_y_p_e___c_h_k___h_e_l_p_e_r____.html">facade_private__::TYPE_CHK_HELPER__&lt;itfc_t , subType &gt;</a>   <a class="code hl_variable" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#aba27b048395bb4b55af366d970c0f7e6">m_chker__</a>[0];</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span>        <a class="code hl_variable" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#ae6c8dce7ed783ad4535f0905804ed524">m_subs__</a>.push_back( obj );</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span>    }</div>
</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno">   71</span> </div>
<div class="foldopen" id="foldopen00072" data-start="{" data-end="}">
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a53569acf35187becc70f7f03546ae4b3">   72</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a53569acf35187becc70f7f03546ae4b3">erase</a>( <a class="code hl_typedef" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a53ea93548f79a4dc9881805e661356e5">iterator</a> it ){</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno">   73</span>        <a class="code hl_variable" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#ae6c8dce7ed783ad4535f0905804ed524">m_subs__</a>.erase( it );</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span>    }</div>
</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span> </div>
<div class="foldopen" id="foldopen00076" data-start="{" data-end="}">
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"><a class="line" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#aa67f905b694f3986c014849985f842c1">   76</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#aa67f905b694f3986c014849985f842c1">erase</a>( <a class="code hl_typedef" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a53ea93548f79a4dc9881805e661356e5">iterator</a> b , <a class="code hl_typedef" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a53ea93548f79a4dc9881805e661356e5">iterator</a> e ){</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno">   77</span>        <a class="code hl_variable" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#ae6c8dce7ed783ad4535f0905804ed524">m_subs__</a>.erase( b , e );</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>    }</div>
</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span> </div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno">   80</span>    <span class="keyword">template</span>&lt; <span class="keyword">typename</span> ...Params &gt;</div>
<div class="foldopen" id="foldopen00081" data-start="{" data-end="}">
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#acf8963a4fcadad2e0b1072b2bb2314bf">   81</a></span>    <span class="keywordtype">void</span> <a class="code hl_function" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#acf8963a4fcadad2e0b1072b2bb2314bf">run</a>(std::function&lt; <span class="keywordtype">void</span> ( <a class="code hl_typedef" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a3b7e2e7aef2676547af09c14b29e713f">itfc_t</a> * , Params&amp;&amp;... )&gt; fun , Params&amp;&amp;... args) {</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span>        <span class="keywordflow">for</span>( <span class="keywordtype">int</span> i = 0; i &lt; <span class="keyword">sizeof</span>...( subTypes ); i ++ ){</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span>            <span class="keywordflow">if</span>( <a class="code hl_variable" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#ae6c8dce7ed783ad4535f0905804ed524">m_subs__</a>[ i ] != <span class="keyword">nullptr</span> ){</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno">   84</span>                fun( <a class="code hl_variable" href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#ae6c8dce7ed783ad4535f0905804ed524">m_subs__</a>[ i ] , std::forward&lt;Params&gt;(args )...);</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>            }</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span>        }</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>    }</div>
</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span>};</div>
</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno">   89</span>}}</div>
<div class="ttc" id="aclasswheels_1_1dm_1_1facade_html"><div class="ttname"><a href="../../d3/dd9/classwheels_1_1dm_1_1facade.html">wheels::dm::facade</a></div><div class="ttdef"><b>定义</b> <a href="#l00029">facade.hpp:30</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1facade_html_a2d7354b5cf88b84f0f85a39db7a3e298"><div class="ttname"><a href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a2d7354b5cf88b84f0f85a39db7a3e298">wheels::dm::facade::facade</a></div><div class="ttdeci">facade(subTypes *... subs)</div><div class="ttdef"><b>定义</b> <a href="#l00059">facade.hpp:59</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1facade_html_a3b7e2e7aef2676547af09c14b29e713f"><div class="ttname"><a href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a3b7e2e7aef2676547af09c14b29e713f">wheels::dm::facade::itfc_t</a></div><div class="ttdeci">typename std::remove_pointer&lt; typename std::decay&lt; itfcType &gt;::type &gt;::type itfc_t</div><div class="ttdef"><b>定义</b> <a href="#l00032">facade.hpp:32</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1facade_html_a53569acf35187becc70f7f03546ae4b3"><div class="ttname"><a href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a53569acf35187becc70f7f03546ae4b3">wheels::dm::facade::erase</a></div><div class="ttdeci">void erase(iterator it)</div><div class="ttdef"><b>定义</b> <a href="#l00072">facade.hpp:72</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1facade_html_a53ea93548f79a4dc9881805e661356e5"><div class="ttname"><a href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a53ea93548f79a4dc9881805e661356e5">wheels::dm::facade::iterator</a></div><div class="ttdeci">typename std::vector&lt; itfc_t * &gt;::iterator iterator</div><div class="ttdef"><b>定义</b> <a href="#l00033">facade.hpp:33</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1facade_html_a635b70c64cf25390a15cc6b10823feb3"><div class="ttname"><a href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a635b70c64cf25390a15cc6b10823feb3">wheels::dm::facade::facade</a></div><div class="ttdeci">facade(std::vector&lt; itfc_t * &gt; subs)</div><div class="ttdef"><b>定义</b> <a href="#l00057">facade.hpp:57</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1facade_html_a7d1839293a0e6e90e727a2f042807623"><div class="ttname"><a href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#a7d1839293a0e6e90e727a2f042807623">wheels::dm::facade::facade</a></div><div class="ttdeci">facade()</div><div class="ttdef"><b>定义</b> <a href="#l00055">facade.hpp:55</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1facade_html_aa1ebf3b7a5f8641fd5f40668c36bf1e9"><div class="ttname"><a href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#aa1ebf3b7a5f8641fd5f40668c36bf1e9">wheels::dm::facade::add</a></div><div class="ttdeci">void add(subType *obj)</div><div class="ttdef"><b>定义</b> <a href="#l00067">facade.hpp:67</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1facade_html_aa67f905b694f3986c014849985f842c1"><div class="ttname"><a href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#aa67f905b694f3986c014849985f842c1">wheels::dm::facade::erase</a></div><div class="ttdeci">void erase(iterator b, iterator e)</div><div class="ttdef"><b>定义</b> <a href="#l00076">facade.hpp:76</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1facade_html_aa689dcc043ea8217fcacd290d45dc018"><div class="ttname"><a href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#aa689dcc043ea8217fcacd290d45dc018">wheels::dm::facade::~facade</a></div><div class="ttdeci">virtual ~facade()</div><div class="ttdef"><b>定义</b> <a href="#l00064">facade.hpp:64</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1facade_html_aba27b048395bb4b55af366d970c0f7e6"><div class="ttname"><a href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#aba27b048395bb4b55af366d970c0f7e6">wheels::dm::facade::m_chker__</a></div><div class="ttdeci">facade_private__::TYPE_CHK_HELPER__&lt; itfc_t, subTypes... &gt; m_chker__[0]</div><div class="ttdef"><b>定义</b> <a href="#l00053">facade.hpp:53</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1facade_html_acf8963a4fcadad2e0b1072b2bb2314bf"><div class="ttname"><a href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#acf8963a4fcadad2e0b1072b2bb2314bf">wheels::dm::facade::run</a></div><div class="ttdeci">void run(std::function&lt; void(itfc_t *, Params &amp;&amp;...)&gt; fun, Params &amp;&amp;... args)</div><div class="ttdef"><b>定义</b> <a href="#l00081">facade.hpp:81</a></div></div>
<div class="ttc" id="aclasswheels_1_1dm_1_1facade_html_ae6c8dce7ed783ad4535f0905804ed524"><div class="ttname"><a href="../../d3/dd9/classwheels_1_1dm_1_1facade.html#ae6c8dce7ed783ad4535f0905804ed524">wheels::dm::facade::m_subs__</a></div><div class="ttdeci">std::vector&lt; itfc_t * &gt; m_subs__</div><div class="ttdef"><b>定义</b> <a href="#l00051">facade.hpp:51</a></div></div>
<div class="ttc" id="anamespacefacade__private_____html"><div class="ttname"><a href="../../dc/d4e/namespacefacade__private____.html">facade_private__</a></div><div class="ttdoc">外观模式</div><div class="ttdef"><b>定义</b> <a href="#l00012">facade.hpp:12</a></div></div>
<div class="ttc" id="anamespacewheels_html"><div class="ttname"><a href="../../df/d8d/namespacewheels.html">wheels</a></div><div class="ttdoc">堆栈信息读取和保存记录</div><div class="ttdef"><b>定义</b> <a href="../../d3/df7/ary__str_8hpp_source.html#l00006">ary_str.hpp:7</a></div></div>
<div class="ttc" id="astructfacade__private_____1_1_t_y_p_e___c_h_k___h_e_l_p_e_r_____html"><div class="ttname"><a href="../../df/da0/structfacade__private_____1_1_t_y_p_e___c_h_k___h_e_l_p_e_r____.html">facade_private__::TYPE_CHK_HELPER__</a></div><div class="ttdef"><b>定义</b> <a href="#l00014">facade.hpp:14</a></div></div>
<div class="ttc" id="astructwheels_1_1dm_1_1facade_1_1_i_n_i_t___h_e_l_p_e_r_____3_010_00_01tuple_params_01_4_html_a35a137440b381c213091edc3f4e9e412"><div class="ttname"><a href="../../dd/de6/structwheels_1_1dm_1_1facade_1_1_i_n_i_t___h_e_l_p_e_r_____3_010_00_01tuple_params_01_4.html#a35a137440b381c213091edc3f4e9e412">wheels::dm::facade::INIT_HELPER__&lt; 0, tupleParams &gt;::init__</a></div><div class="ttdeci">static void init__(std::vector&lt; itfc_t * &gt; &amp;, tupleParams &amp;)</div><div class="ttdef"><b>定义</b> <a href="#l00048">facade.hpp:48</a></div></div>
<div class="ttc" id="astructwheels_1_1dm_1_1facade_1_1_i_n_i_t___h_e_l_p_e_r_____html"><div class="ttname"><a href="../../df/d83/structwheels_1_1dm_1_1facade_1_1_i_n_i_t___h_e_l_p_e_r____.html">wheels::dm::facade::INIT_HELPER__</a></div><div class="ttdef"><b>定义</b> <a href="#l00037">facade.hpp:38</a></div></div>
<div class="ttc" id="astructwheels_1_1dm_1_1facade_1_1_i_n_i_t___h_e_l_p_e_r_____html_a3da2a8345e0f0cc51621b090a75b458c"><div class="ttname"><a href="../../df/d83/structwheels_1_1dm_1_1facade_1_1_i_n_i_t___h_e_l_p_e_r____.html#a3da2a8345e0f0cc51621b090a75b458c">wheels::dm::facade::INIT_HELPER__::init__</a></div><div class="ttdeci">static void init__(std::vector&lt; itfc_t * &gt; &amp;vec, tupleParams &amp;t)</div><div class="ttdef"><b>定义</b> <a href="#l00039">facade.hpp:39</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
